<?php

switch ($_SERVER['SERVER_NAME']) {
  case "vistaporencima.local":
    define('YII_FRAMEWORK', 'D:\Projects\project Rilia.es\yii\framework\yii.php');
    define('_DB_SERVER_', 'localhost');
    define('_DB_NAME_', 'vistaporencima');
    define('_DB_USER_', 'root');
    define('_DB_PASSWD_', '');
    break;
  default:
    define('YII_FRAMEWORK', dirname(__FILE__).'/framework/yii.php');
    define('_DB_SERVER_', 'localhost');
    define('_DB_NAME_', 'catalin_vistaporencima');
    define('_DB_USER_', 'catalin_vpe');
    define('_DB_PASSWD_', '@vpe1987@');
    break;
}

// change the following paths if necessary
$yii=YII_FRAMEWORK;
$config=dirname(__FILE__).'/protected/config/main.php';

// remove the following line when in production mode
defined('YII_DEBUG') or define('YII_DEBUG',true);

require_once($yii);
Yii::createWebApplication($config)->run();
